import json


def read_info(filename='data/login_data.json'):
    list_temp = []
    with open(filename, 'r', encoding='utf-8') as f:
        result = json.load(f)
        # print(result)
        for dict_data in result:
            # print(dict_data)
            # print(tuple(dict_data.values()))
            list_temp.append(tuple(dict_data.values()))
        return list_temp


def get_url(key, filename='data/urls.json'):
    with open(filename, 'r', encoding='utf-8') as f:
        result = json.load(f)
        # print(result[key])
        return result.get(key)


if __name__ == '__main__':
    ret = read_info()
    print(ret)

    ret = get_url('login_url')
    print(ret)